Skip to content

fix(auth): negotiate RPC v2 before interactive login - #4

Merged
kahme247 merged 1 commit into
mainfrom
codex/fix-rpc-v2-login
Aug 17, 2026
Merged

kahme247 merged 1 commit into
mainfrom
codex/fix-rpc-v2-login

Conversation

@kahme247

@kahme247 kahme247 commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #3. The utility RPC fix covered \

  • get_available_models\nbut the dedicated interactive login flow still called waitReady() -> login without negotiating RPC v2 first. This aligns login with every other production RpcProcess startup path:\n\n\n waitReady()\n negotiateProtocol()\n login\n\n\nFixes the latent 1 MiB transport-limit edge case for unusually large OAuth/UI frames and adds a regression test (lib/api-contract.test.mjs) that asserts waitReady -> negotiateProtocol -> login ordering.\n\nVerified: npm test (337 passed, 4 skipped), tsc --noEmit, eslint.

Summary by cubic

Interactive login now negotiates RPC v2 before sending the login command, aligning it with other RpcProcess startup paths. Previously it called waitReady() then login, which could hit the 1 MiB transport limit on large OAuth/UI frames; now it does waitReady → negotiateProtocol → login.

  • app/api/auth/login/[provider]/route.ts: capture the result of waitReady and call negotiateProtocol before sending the login command.
  • lib/api-contract.test.mjs: add a regression test that asserts the waitReady → negotiateProtocol → login ordering.
  • No config or migration changes; behavior of other startup paths is unchanged.

Written for commit ae6968d. Summary will update on new commits.

Review in cubic

@kahme247
kahme247 merged commit 82fbdbc into main Aug 17, 2026
1 of 2 checks passed
@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@kahme247, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 40 minutes

Limit details: You’ve used all 1 included review currently available under your plan.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7a32b426-c11e-4e7e-ace8-6b94dcace4cd

📥 Commits

Reviewing files that changed from the base of the PR and between 86bc850 and ae6968d.

📒 Files selected for processing (2)
  • app/api/auth/login/[provider]/route.ts
  • lib/api-contract.test.mjs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kahme247
kahme247 deleted the codex/fix-rpc-v2-login branch August 17, 2026 21:21
@kilo-code-bot

kilo-code-bot Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Code Review Roast 🔥

Verdict: No Issues Found | Recommendation: Merge

Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything.

📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are.

Files Reviewed (2 files)
  • app/api/auth/login/[provider]/route.ts
  • lib/api-contract.test.mjs

Reviewed by step-3.7-flash · Input: 76.5K · Output: 22.2K · Cached: 1.8M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant